from PySide6.QtWidgets import QApplication,QWidget
from ui_login import Ui_Form
class MyWindow(QWidget,Ui_Form):
    def __init__(self):
        super().__init__()
        self.setupUi(self)
        self.account = ''
        self.password = ''

        self.pushButton_login.clicked.connect(self.check)
        #self.pushButton_signup.connect()

    def check(self):
        self.account = self.lineEdit_1.text()
        self.password = self.lineEdit_2.text()
        if self.account == '123' and self.password == '123':
            print('登录成功！')
        else:
            print('账号或密码错误！')


if __name__ == "__main__":
    app = QApplication([])
    my_window = MyWindow()
    my_window.show()
    app.exec()
